package com.ytjj.qmyx.mall.enums;

import lombok.Getter;

@Getter
public enum UserBehaviorActivityTypeEnums {

//    CASH_SCORE("CASH_SCORE", "积分"),
//    CASH_COUPON("CASH_COUPON", "优惠券"),
//    SECKILL("SECKILL", "秒杀"),
//    OLD_FOR_NEW("OLD_FOR_NEW", "品牌补贴"),
//    RECHARGE_COUPON("RECHARGE_COUPON", "话费券"),
//    RETURN_COUPON("RETURN_COUPON", "红包返现"),
//    PAY_AFTER_USE("PAY_AFTER_USE", "先用后付"),
//    ZERO_EVALUATION("ZERO_EVALUATION","0元测评"),
//    GROUP_WORK("GROUP_WORK", "拼团活动"),
//    CHINA_GOLD("CHINA_GOLD", "中国黄金"),
//    SHOPPING_CARD("SHOPPING_CARD", "购物卡"),
//    GUESS_LIKE("GUESS_LIKE", "猜你喜欢"),


    MODEL_ZERO("MODEL_ZERO", "ZERO_EVALUATION"),
    MODEL_GROUP("MODEL_GROUP", "GROUP_WORK"),
    MODEL_SCORE("MODEL_SCORE", "CASH_SCORE"),
    MODEL_COUPON("MODEL_COUPON", "CASH_COUPON"),
    MODEL_SUBSIDIES("MODEL_SUBSIDIES", "OLD_FOR_NEW"),
    MODEL_RECHARGE("MODEL_RECHARGE", "RECHARGE_COUPON"),
    COMMON("COMMON", "COMMON"),
    EXCLUSIVE_TRIAL("EXCLUSIVE_TRIAL", "EXCLUSIVE_TRIAL"),
    DISCOUNTS_TRIAL_ACTIVITY("DISCOUNTS_TRIAL_ACTIVITY","DISCOUNTS_TRIAL_ACTIVITY")
    ;

    /**
     * 模块类型
     */
    private String activityCode;

    /**
     * 活动类型
     */
    private String activityType;

    UserBehaviorActivityTypeEnums(String activityCode, String activityType) {
        this.activityCode = activityCode;
        this.activityType = activityType;
    }

    /**
     * 获取活动类型
     *
     * @param activityCode
     * @return
     */
    public static String getActivityType(String activityCode) {
        UserBehaviorActivityTypeEnums[] values = UserBehaviorActivityTypeEnums.values();
        for (UserBehaviorActivityTypeEnums value : values) {
            if(value.activityCode.equals(activityCode)) {
                return value.getActivityType();
            }
        }
        return null;
    }
}
